package com.itheima.visitor.dispatch.static_dispatch;

/**
 * @author zzw
 * @date 2025/10/26
 * @description 静态分派
 */
public class Client {
    public static void main(String[] args) {
        Animal animal = new Animal();
        Dog dog = new Dog();
        Cat cat = new Cat();

        Execute execute = new Execute();
        execute.execute(animal);
        execute.execute(dog);
        execute.execute(cat);
    }
}
